package com.million.eduservice.service;

import com.million.eduservice.entity.EduVideo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.million.eduservice.entity.vo.video.VideoInfoFormVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author 十麓
 * @since 2022-03-24
 */
public interface EduVideoService extends IService<EduVideo> {

    /**
     * 添加video 表单信息  有小节、视频
     * @param videoInfoFormVo 前端数据
     */
    void addVideoInfo (VideoInfoFormVo videoInfoFormVo);

    //根据小节id查询小节信息
    VideoInfoFormVo getVideoInfo (String videoId);

    //修改小节信息
    void updateVideoInfo (VideoInfoFormVo videoInfoFormVo);

    //删除小节信息
    void removeVideoById (String courseId);

}
